<?php
namespace Admin\Models\device;

use Admin\Models\BaseModel;

class XhsysTabletExchange extends BaseModel
{

    public $iId;
    public $iCheckStatus;
    public $sCheckUser;
    public $sCheckDate;
    public $iFinanceStatus;
    public $sFinanceCheck;
    public $sFinanceCheckDate;
    public $iUTId;
    public $sDevNumber;
    public $sDevType;
    public $iReceiverId;
    public $sReceiver;
    public $sReceiverAccount;
    public $iNewPurpose;
    public $iPurpose;
    public $iSchoolId;
    public $iOldSchoolId;
    public $sRemark;

    /**
     *
     * @var integer
     * @Column(type="integer", length=1, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSys_TabletExchange';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param null $parameters
     *
     * @return \Phalcon\Mvc\Model\ResultsetInterface | XhsysTabletExchange [] |XhsysTabletExchange
     *
     * create by qgz 20190221
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param null $parameters
     *
     * @return \Phalcon\Mvc\Model | XhsysTabletExchange
     *
     * create by qgz 20190221
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }
}
